<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/6/14
  Time: 19:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<a href="index.jsp">返回首页</a>
<table border="3">
    <tr>
        <td>人物ID</td>
        <td>人物名字</td>
        <td>人物年龄</td>
        <td>修改</td>
        <td>删除</td>
    </tr>
    <c:forEach items="${list}" var="user">
        <tr>
            <td>${user.id}</td>
            <td>${user.name}</td>
            <td>${user.age}</td>
            <td><a href="update.jsp?id=${user.id}&name=${user.name}&age=${user.age}">修改</a></td>
            <td><a href="delete.action?user.id=${user.id}">删除</a></td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
